/* 权限设置对话框样式 */
.permission-dialog .ant-modal-body {
  padding: 24px;
}

.permission-dialog-content {
  max-height: 70vh;
  overflow-y: auto;
}

/* 文件信息区域 */
.permission-dialog-file-info {
  margin-bottom: 20px;
  padding: 12px;
  background-color: #f8f9fa;
  border-radius: 6px;
  border-left: 4px solid #1890ff;
}

.permission-dialog-file-info .ant-typography-title {
  margin-bottom: 8px !important;
  color: #1890ff;
}

/* 模式选择器 */
.permission-dialog-mode-selector {
  margin-bottom: 20px;
}

.permission-dialog-mode-selector .ant-typography-title {
  margin-bottom: 12px !important;
}

.permission-dialog-mode-selector .ant-radio-group {
  display: flex;
  gap: 24px;
}

.permission-dialog-mode-selector .ant-radio-wrapper {
  font-weight: 500;
}

/* 权限编辑器区域 */
.permission-dialog-editor {
  margin-bottom: 24px;
}

.permission-dialog-editor .ant-tabs-content-holder {
  padding-top: 16px;
}

/* 高级选项区域 */
.permission-dialog-advanced {
  margin-bottom: 24px;
  padding: 16px;
  background-color: #fafafa;
  border-radius: 6px;
  border: 1px solid #e8e8e8;
}

/* 权限预览区域 */
.permission-dialog-preview {
  padding: 16px;
  background-color: #f0f2f5;
  border-radius: 6px;
  border: 1px solid #d9d9d9;
}

.permission-dialog-preview .ant-typography-title {
  margin-bottom: 12px !important;
  color: #595959;
}

.permission-preview-display {
  display: flex;
  align-items: center;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 16px;
}

.permission-preview-display .ant-typography {
  font-size: 16px !important;
}

/* 八进制权限编辑器样式 */
.octal-permission-editor {
  padding: 0;
}

.octal-permission-editor .ant-typography-title {
  margin-bottom: 12px !important;
  font-size: 14px !important;
  color: #262626;
}

/* 权限表格样式 */
.permission-table {
  margin-bottom: 0;
}

.permission-table .ant-table-thead > tr > th {
  background-color: #fafafa;
  font-weight: 600;
  text-align: center;
  padding: 12px 8px;
}

.permission-table .ant-table-tbody > tr > td {
  padding: 12px 8px;
  text-align: center;
  vertical-align: middle;
}

.permission-table .ant-table-tbody > tr > td:first-child {
  text-align: left;
}

.permission-table .ant-checkbox-wrapper {
  margin: 0;
}

/* 常用权限标签样式 */
.permission-table .ant-tag {
  margin: 2px 4px 2px 0;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.permission-table .ant-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.permission-table .ant-tag.ant-tag-blue {
  background-color: #1890ff;
  border-color: #1890ff;
  color: white;
}

/* 符号权限编辑器样式 */
.symbolic-permission-editor {
  padding: 0;
}

.symbolic-permission-editor .ant-input {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 14px;
}

.symbolic-permission-editor .ant-alert {
  margin-bottom: 16px;
}

/* 高级选项样式 */
.advanced-options {
  padding: 0;
}

.advanced-options .ant-typography-title {
  margin-bottom: 16px !important;
  font-size: 14px !important;
  color: #262626;
}

.advanced-options .ant-checkbox-wrapper {
  margin-bottom: 8px;
  font-weight: 500;
}

.advanced-options .ant-checkbox-wrapper .ant-typography {
  margin-left: 4px;
}

.advanced-options .ant-divider {
  margin: 12px 0;
}

.advanced-options .ant-alert {
  margin-top: 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .permission-dialog {
    width: 95% !important;
    max-width: none !important;
  }
  
  .permission-dialog-content {
    max-height: 60vh;
  }
  
  .permission-table .ant-table-thead > tr > th,
  .permission-table .ant-table-tbody > tr > td {
    padding: 8px 4px;
    font-size: 12px;
  }
  
  .permission-dialog-mode-selector .ant-radio-group {
    flex-direction: column;
    gap: 12px;
  }
  
  .permission-preview-display {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* 滚动条样式 */
.permission-dialog-content::-webkit-scrollbar {
  width: 6px;
}

.permission-dialog-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.permission-dialog-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.permission-dialog-content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 动画效果 */
.permission-dialog .ant-modal-content {
  animation: permissionDialogFadeIn 0.3s ease-out;
}

@keyframes permissionDialogFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 权限表格行悬停效果 */
.permission-table .ant-table-tbody > tr:hover > td {
  background-color: #f5f5f5;
}

/* 输入框焦点样式 */
.permission-dialog .ant-input:focus,
.permission-dialog .ant-input-focused {
  border-color: #1890ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* 复选框样式优化 */
.permission-dialog .ant-checkbox-checked .ant-checkbox-inner {
  background-color: #1890ff;
  border-color: #1890ff;
}

.permission-dialog .ant-checkbox:hover .ant-checkbox-inner {
  border-color: #1890ff;
}

/* 标签页样式 */
.permission-dialog .ant-tabs-tab {
  font-weight: 500;
}

.permission-dialog .ant-tabs-tab.ant-tabs-tab-active {
  color: #1890ff;
}

.permission-dialog .ant-tabs-ink-bar {
  background-color: #1890ff;
}
